import request from "@/utils/request";

// 查询课程专业配置列表
export function listPost_courseMajor(query) {
  return request({
    url: "/manager/courseMajor/list",
    method: "get",
    params: query,
  });
}

// 修改课程专业配置
export function updatePost_courseMajor(data) {
  return request({
    url: "/manager/courseMajor",
    method: "put",
    data: data,
  });
}
// 批量修改课程专业配置
export function updatePost_courseMajorSum(data) {
  return request({
    url: "/manager/courseMajor/updateApplyLimitBatch",
    method: "put",
    // headers:{
    //   "Content-Type":'application/x-www-form-urlencoded'
    // },
    data: data,

  });
}
// 查询课程专业配置
export function getPost_courseMajor(id) {
  return request({
    url: "/manager/courseMajor/" + id,
    method: "get",
  });
}
// 批量修改补考次数
export function updateCourseExamTimes(examTimes,courseIds) {
  return request({
    url: `/manager/course/updateCourseExamTimes/${examTimes}/${courseIds}`,
    method: "put",
  });
}
